﻿package mortal.game.view.copy.crossMainCity.panels
{
    import com.mui.controls.*;
    import extend.language.*;
    import flash.events.*;
    import mortal.common.*;
    import mortal.common.global.*;
    import mortal.component.window.*;
    import mortal.game.view.common.*;
    import mortal.mvc.interfaces.*;

    public class MainCityBattleFinalRuleWin extends SmallWindow
    {
        protected var _txt:GTextFiled;
        protected var _btn:GButton;
        private static var _instance:MainCityBattleFinalRuleWin;

        public function MainCityBattleFinalRuleWin(param1:ILayer = null)
        {
            super(param1);
            this.setSize(420, 253);
            this.title = Language.getString(20946);
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            var _loc_1:* = GlobalStyle.textFormatPutong;
            _loc_1.color = 16777215;
            _loc_1.size = 14;
            _loc_1.leading = 3;
            this._txt = UIFactory.gTextField("", 21, 50, 388, 140, this, _loc_1);
            this._txt.textColor = 16777215;
            this._txt.htmlText = Language.getString(20704);
            this._btn = UIFactory.gButton(Language.getString(20947), 154, 206, 108, 30, this);
            this._btn.configEventListener(MouseEvent.CLICK, this.clickHandler);
            return;
        }// end function

        private function clickHandler(param1) : void
        {
            this.hide();
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._txt.dispose(param1);
            this._txt = null;
            return;
        }// end function

        public static function get instance() : MainCityBattleFinalRuleWin
        {
            if (_instance == null)
            {
                _instance = new MainCityBattleFinalRuleWin;
            }
            return _instance;
        }// end function

    }
}
